<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const arr1 = ['html', 'css', 'js'];

      // const arr2 = [...arr1];
      // const arr2 = JSON.parse(JSON.stringify(arr1));
      // const arr2 = arr1.join(',').split(',');
      // const arr2 = arr1.map((el) => el);
      // const arr2 = arr1.filter((el) => true);
      // const arr2 = arr1.slice(0);
      const arr2 = [];
      arr1.forEach((el) => arr2.push(el));
      console.log(arr1, arr2);
    </script>
  </body>
</html>
